import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import {BACKEND_URL} from "./src/request/Api.ts";

// https://vite.dev/config/
export default defineConfig({
    plugins: [vue()],
    server: {
        proxy: {
            '/API': {
                target: BACKEND_URL,
                changeOrigin: true,
                rewrite: (path) => path.replace(/^\/API/, '')
            }
        }
    }
})
